package com.jorado.redis;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.joradoJedisCluster;

import java.util.Set;

public class JoradoJedisRedisClusterInitializer extends AbstractRedisClusterInitializer {

    @Override
    public JedisCluster init(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, int maxAttempts, GenericObjectPoolConfig poolConfig) {
        return new joradoJedisCluster(jedisClusterNode, connectionTimeout, soTimeout,
                maxAttempts, poolConfig);
    }

}
